const express = require('express');
const { verifyToken } = require('../utils/jwt');
const router = express.Router();
const reaNameContorller = require('../contorller/reaNameContorller')
router
//添加实名认证(前台)
.post('/add',verifyToken(),reaNameContorller.addReaName)
//获取实名认证列表(后台)
.get('/list',verifyToken(),reaNameContorller.getReaNameList)
//获取实名详情
.get('/detail',verifyToken(),reaNameContorller.getReaNameDetail)
//通过实名的回调
.put('/pass',verifyToken(),reaNameContorller.passReaName)
//没通过实名的回调
.put('/nopass',verifyToken(),reaNameContorller.nopassReaName)
//删除实名认证
.delete('/delete',verifyToken(),reaNameContorller.deleteReaName)
//获取实名信息(前台)
.get('/getReaName',verifyToken(),reaNameContorller.getReaName)
module.exports = router;